﻿using System;
using System.Windows.Media;
namespace Moonlite.ExtensionApi.ControlInterfaces
{
    public class ErrorListObject
    {
        public int ImageIndex { get; set; }
        public string Description { get; set; }
        public string File { get; set; }
        public int Row { get; set; }
        public int Column { get; set; }
        public int Length { get; set; }
        public ErrorListObjectDoubleClick Action { get; set; }
        public override string ToString()
        {
            return Description;
        }
        public ErrorListObject()
            : this(-1, "", "", -1, -1, -1, null)
        {

        }
        public ErrorListObject(int imageIndex, string description, string file, int row, int column, int length, ErrorListObjectDoubleClick action)
        {
            ImageIndex = imageIndex;
            Description = description;
            File = file;
            Row = row;
            Column = column;
            Length = length;
            Action = action;
        }
    }
}
